# 面试题：闭包函数是什么？
def outer():
    n=1
    def inter():
        nonlocal  n
        n+=1
        return n
    return inter
c=outer()
print(c())
print(outer()())

